<h1>New Post</h1>

<% form_for :post, :url => { :action => "create" }, :html => {:id => "a_form" } do |@f| %>
    <%= render :partial => 'form' %>
<% end %>

<script type="text/javascript">
     new Validation('a_form'); // OR new Validation(document.forms[0]);
</script>